﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using Dogshow.Win.Views;
using Shell;
using Bootstrap.AutoMapper;
using Bootstrap.Ninject;

namespace Dogshow.Win
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            var shell = new Shell.Shell {ApplicationName = "Dogshow - 1.0"};
            var sifarnici = new NavGroup("Šifarnici", null);
            sifarnici.AddViewFactory(new SifarnikRasaPasaViewFactory());
            sifarnici.AddViewFactory(new SifarnikKinologaViewFactory());
            sifarnici.AddViewFactory(new SifarnikSudijaViewFactory());
            sifarnici.AddViewFactory(new PsiViewFactory());
            sifarnici.AddViewFactory(new IzlozbeViewFactory());
            sifarnici.AddViewFactory(new KinoloskaDrustvaViewFactory());
            sifarnici.AddViewFactory(new SifarnikMestaViewFactory());
            shell.AddGroup(sifarnici);

            Bootstrap.Bootstrapper.With.AutoMapper().Start();
            Bootstrap.Bootstrapper.With.Ninject().Start();

            Application.Run(shell);
        }
    }
}
